import  {request}  from '@/request/request'

// 获取贷款申请基本信息
export const getLoan = (params:string) => { 
  return request({
    url: `/api/v1/loan/${params}`,
    method: 'GET',
  })
}

// 计算贷款应还利息和应还金额
export const getPay = (interestConfigId:string,loanAmount:string) => { 
  return request({
    url: `/api/v1/loan/payable/${interestConfigId}?loanAmount=${loanAmount}`,
    method: 'GET',
  })
}

// 提交贷款申请
export const applyLoan = (phoneNumber:number,data:any) => { 
  return request({
    url: `/api/v1/loan/${phoneNumber}`,
    method: 'POST',
	data
  })
}




